<template>
  <h1 class="title">
    <span class="content">课程详情</span>
  </h1>
  <!-- 无数据 -->
  <div v-if="!desc || desc === '<p><br></p>'" class="w-100%">
    <svg-icon
      name="sour_face"
      class="svg"
      width="150px"
      height="150px"
    ></svg-icon>
    <span class="f-c-c mt-5 color-#909399">暂无课程详情，请稍后再试~</span>
  </div>
  <div class="desc" v-html="desc" v-else></div>
</template>

<script setup lang="ts" name="CourseTab">
defineProps(['desc'])
</script>

<style scoped>
.title {
  margin: 0;
  color: #00061a;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  padding: 24px 0 24px;
  line-height: unset;
  vertical-align: middle;
  .content {
    border-left: 5px solid #333;
    padding-left: 5px;
    line-height: 24px;
  }
}
</style>
